package com.threefish.modules.sys.entity.organize;

import com.threefish.common.entity.AbstractBaseEntity;
import org.nutz.dao.entity.annotation.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 823085344@qq.com
 * 创建人：潘闯
 * 创建时间: 2018/6/14
 * 描述此类：系统用户岗位关联
 */
@Table("sys_user_account_job")
@PK({"jobId", "userId"})
@TableIndexes(@Index(fields = {"jobId", "userId"}, name = "pks"))
@Comment("用户岗位关联信息")
public class UserAccountJob extends AbstractBaseEntity {

    @Column("job_id")
    @ColDefine(width = 32, notNull = true)
    private String jobId;

    @Column("user_id")
    @Name
    @ColDefine(width = 32, notNull = true)
    private String userId;

    public UserAccountJob() {
    }

    public UserAccountJob(String jobId, String userId) {
        this.jobId = jobId;
        this.userId = userId;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
